#每个.c文件单独编译，并生成一个可执行文件

CC = gcc
CFLAGS = -Wall -O0 -g
SRC = $(shell ls *.c)
APP = $(patsubst %.c,%,$(SRC))

all :$(APP)

%: %.c
	$(CC) $(CFLAGS) -o $@ $< -lm -lpthread

clean: 
	$(RM) $(APP)
.PHONY: clean

